package com.kds.smarthome.config;

import com.kds.smarthome.common.DateType;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class StringToEnumConverter implements Converter<String, DateType> {
    @Override
    public DateType convert(String source) {
        return DateType.fromCode(source);
    }
} 